home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / 1994.12.gz / 1994.12 / 000080_khc@eece.ksu.edu_Wed Dec 21 11:32:00 1994.msg < prev    next >
Internet Message Format  |  1994-12-30  |  3KB

  1. Received: from wiz.eece.ksu.edu by cs.umb.edu with SMTP id AA20542
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Wed, 21 Dec 1994 18:33:20 -0500
  3. Received: from elmo.eece.ksu.edu by wiz.eece.ksu.edu with smtp
  4.     (Smail3.1.28.1 #7) id m0rKaX7-000A8wC; Wed, 21 Dec 94 17:33 CST
  5. Received: by elmo.eece.ksu.edu (Smail3.1.28.1 #7)
  6.     id m0rKaVz-0001NaC; Wed, 21 Dec 94 17:32 CST
  7. Message-Id: <m0rKaVz-0001NaC@elmo.eece.ksu.edu>
  8. Date: Wed, 21 Dec 94 17:32 CST
  9. From: khc@eece.ksu.edu (Kenneth H. Carpenter)
  10. To: tex-k@cs.umb.edu
  11. Subject: bug in the patch in web2c.kpathsea-2.5.help
  12.  
  13. Today I tried to build tex from sources from the ctan archives
  14. that are the most recent.  I followed the directions in the
  15. file web2c.kpathsea-2.5.help to incorporate kpathsea-2.5 in tex.
  16. All was well except for a bug in the patch provided in web2c.kpathsea-2.5.help.
  17. I have found a work-around for it, and just in case no one else has
  18. hit is yet, I am reporting it here:
  19.  
  20. The patch to the file web2c/configure in web2c.kpathsea-2.5.help
  21. contains a bug which causes compilation to fail for tex/mf on a
  22. Sun Sparc1 running SunOS4.1.3 using gcc2.6.1 and flex 2.4.7.
  23. The error is due to the configure in the top level setting the 
  24. pointer type for the lex yytext, then in the configure in web2c
  25. the test is skipped, so that the LEX_OUTPUT_ROOT symbol is null.
  26. This causes the makefile produced to not have a file name for the
  27. output from (f)lex.  The section in error is from line 2810 to line
  28. 2830 in web2c.kpathsea-2.5.help:
  29. ------------------------------------------------------------
  30. ! echo $ac_n "checking for yytext declaration""... $ac_c" 1>&4
  31. ! if eval "test \"`echo '${'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
  32. !   echo $ac_n "(cached) $ac_c" 1>&4
  33. ! else
  34. !   # POSIX says lex can declare yytext either as a pointer or an array; the
  35. ! # default is implementation-dependent. Figure out which it is, since
  36. ! # not all implementations provide the %pointer and %array declarations.
  37. ! #
  38. ! # The minimal lex program is just a single line: %%.  But some broken lexes
  39. ! # (Solaris, I think it was) want two %% lines, so accommodate them.
  40. ! ac_cv_prog_lex_yytext_pointer=no
  41.     echo '%%
  42. ! %%' | $LEX
  43. ! if test -f lex.yy.c; then
  44. !   LEX_OUTPUT_ROOT=lex.yy
  45. ! elif test -f lexyy.c; then
  46. !   LEX_OUTPUT_ROOT=lexyy
  47. ! else
  48. !   { echo "configure: error: cannot find output from $LEX, giving up" 1>&2; exi
  49. t 1; }
  50.   fi
  51. ------------------------------------------------------------
  52. In this part of the patch, if the first "if" evaluates "true" then
  53. LEX_OUTPUT_ROOT is never defined.
  54.  
  55. A work-around for this bug is to run ./configure from subdirectory
  56. web2c after ./configure has finished running from the directory above,
  57. and without defining the cache to it.
  58.  
  59. The fix should be to put LEX_OUTPUT_ROOT in the catch and read it in
  60. to the recursive configures.